#pragma once
#include "Constants.h"

class SearchNode
{
public:
	SearchNode(void);
	~SearchNode(void);
	unsigned int ps[WORDS];                               /* the packed states themselves */
	short g;                                      /* distance from initial state */
	short h;                        /* static heuristic distance from goal state */
	short cost;						/* The cost assigned to this hashtable cell */
	short oldblank;                                /* previous position of blank */
	int link;                    /* pointer to next element with same hash value (in the hashtable) */
	int heapIndex; /* The index of this item in the heap. -1 if not in the heap yet */
	int parent; /* Index in the hashtable of parent node */
};
